package com.xyzwps.paimon.furina.common.value

import com.fasterxml.jackson.databind.module.SimpleModule
import com.xyzwps.paimon.furina.common.jackson.LocalDateTimeKDS.registerLocalDateTime

class ValueModule : SimpleModule() {
    init {
        this.registerStr(AvatarUrl::class.java) { AvatarUrl(it) }
        this.registerStr(DedupKey::class.java) { DedupKey(it) }
        this.registerStr(Nickname::class.java) { Nickname(it) }
        this.registerStr(Phone::class.java) { Phone(it) }
        this.registerStr(UserDescription::class.java) { UserDescription(it) }
        this.registerStr(Vcode::class.java) { Vcode(it) }

        this.registerLocalDateTime()
    }
}